import httpInstance from '@/utils/http'

//加入购物车
export const addCartAPI = ({skuId,count}) => httpInstance.post('/member/cart',{skuId,count})

//获取购物车列表
export const getCartListAPI = () => httpInstance.get('/member/cart')

//删除购物车商品
export const deleteCartAPI = (ids) => httpInstance.delete('/member/cart',{data:{ids}})

//合并购物车
export const mergeCartAPI = (arr) => httpInstance.post('/member/cart/merge',arr)
